
#ifndef _PARSER_H_
#define	_PARSER_H_	1

#include "httpcommon.h"


class CHttpParser
{
public:
	CHttpParser() : m_content(0) {}
	CHttpParser( const char *cont ) { m_content = (char *)cont; }

	void SetContent( const char *cont ) { m_content = (char *)cont; }

	// old function
	const char	*searchToken( const char *token, int tokenLen, int *valLen );
	TOKEN_NAME	parseTokenLine( char *startLinePtr, int LineLen, char **valuePtr );

	// new function

private:
	char *m_content;
};



#endif